<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <ul id="ul"></ul>

    <script>
      const ul = document.getElementById("ul");

      while (true) {
        const text = prompt();
        if (text === null) break;
        const li = document.createElement("li");
        li.innerHTML = text;
        ul.append(li);
      }
    </script>
  </body>
</html>
